package cn.tedu.erp.project.ex;

import cn.tedu.erp.project.web.ServiceCode;
import lombok.Getter;

/**
 * 用户名被占用后报错,继承运行时异常
 */
public class ServiceException extends RuntimeException {
    //异常代码
    @Getter
    private ServiceCode code;

    public ServiceException(ServiceCode code, String message) {
        super(message);
        this.code = code;
    }
}
